<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>PHProjekt</title>
    <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="min/min/?g=phprojekt" />
    <script type="text/javascript" src="dojo/dojo/dojo.js"></script>
    <script type="text/javascript">
        dojo.require('dojo.parser');
        dojo.require('dijit.layout.BorderContainer');
        dojo.require('dijit.layout.ContentPane');
        dojo.require('dijit.Toolbar');
        function getMaxHeight() {
            var availHeight = 0;

            if (document.layers) {
                availHeight = window.innerHeight + window.pageYOffset;
            } else if (document.all) {
                availHeight = document.documentElement.clientHeight + document.documentElement.scrollTop;
            } else if (document.getElementById) {
                availHeight = window.innerHeight + window.pageYOffset;
            }

            return availHeight;
        }

        function init() {
            availHeight = getMaxHeight();

            dojo.style(dojo.byId('completeContent'), "height", availHeight + "px");
            if (dijit.byId('completeContent')) {
                dijit.byId('completeContent').resize();
            }

            if (dojo.byId('completeCenterContent')) {
                dojo.style(dojo.byId('completeCenterContent'), "height", (availHeight - 55) + "px");
                if (dijit.byId('completeCenterContent')) {
                    dijit.byId('completeCenterContent').resize();
                }
            }
        }

        dojo.addOnLoad(function() {
            dojo.parser.parse();
            init();
        });

        window.onresize = function() {
            init();
        };
    </script>
</head>
<body class="phprojekt claro">

<div id="completeContent" class="completeContent" dojoType="dijit.layout.BorderContainer" persist="true" gutters="false"
 style="width: 100%; height: 1000px;">
    <!-- Left Content -->
    <div id="navigation-container" class="navigationContainer" dojoType="dijit.layout.ContentPane" region="left" splitter="false" minSize="180"
    maxSize="300"
    style="width: 15%; overflow: hidden;">
        <div region="center" dojoType="dijit.layout.ContentPane">
            <div id="tree-navigation" class="treeNavigation">
                <div dojoType="dijit.layout.ContentPane" id="treeBox" class="treeBox"
                 style="height: 100%;">
                </div>
            </div>
        </div>
    </div>

    <!-- Top Bar menu -->
    <div dojoType="dijit.layout.ContentPane" region="top" id="header" class="header"
    style="height: 55px; overflow: hidden;">
        <img class="left" src="img/logo.png" title="PHProjekt 6" />
        <div id="loadingIcon" class="loadingIcon" class="right align-right"
        style="margin-top: 5px; margin-bottom: 5px; display: none;">
            <img class="left" src="img/ajax-loader.gif" title="Loading" />
        </div>
    </div>

    <!-- Center Content -->
    <div    id="completeCenterContent"
            dojoType="dijit.layout.ContentPane"
            region="center"
            style="height: 1000px;">
        <br/>
        <div class="prepend-0" id="content">
        <?php $p = Phprojekt::getInstance(); ?>
        <h2><?php echo $p->translate('Migration neccessary'); ?></h2>
            <p>
                <?php echo $p->translate('Thank you for upgrading to PHProjekt version ');
                      echo $this->newVersion;
                      echo $p->translate(<<<HERE
.<br/>
We're sorry to disrupt your Work, but we need to do some things to the database.<br/><br/>
You can use Phprojekt again after an administrator initiated the upgrade.
HERE
);
                ?>
                <br/>
                    <a href="index.php/Login/logout">
                        <?php echo $p->translate('Logout'); ?>
                    </a>
            </p>
        </div>
    </div>
</div>
</body>
</html>
